package pl.tssoft.math.core.exceptions;

/**
 *
 * @author tserafin
 */
public abstract class MathException extends Exception {

    private final int position;
    private final ErrorCode code;

    public MathException(int position, ErrorCode code) {
        this.position = position;
        this.code = code;
    }

    public int getPosition() {
        return position;
    }

    public ErrorCode getCode() {
        return code;
    }
}
